I was messing around with some multifractals and came up with this. It's
based on a crackle form <1,0,0> repeated like a perlin multi-fractal over 8
octaves. The heightfield renders pretty quick (19 minutes) but the isosurfae
took an amazing 9 hours!
Here's the code for the pattern, the Curve value adjusts how the holes look.
Have a look at p.b.a to see what happens when I animate that value!:
pigment {
#local Curve=1/8; // small values make it look porous
#local Omega=0.5;
#local Lambda=2;
#local Octaves=8;
pigment_pattern {
average
pigment_map {
#local octave=0;
#while ( octave < Octaves )
[pow(Omega,octave)
pigment_pattern {
crackle form <.9,0,0>
scale pow(Lambda,-octave)
colour_map {[0 rgb 1][1 rgb 0]}
}
poly_wave 1/Curve
]
#local octave=octave+1;
#end
}
}
poly_wave Curve
colour_map {[0 rgb 1][1 rgb 0]}
}
--
Tek
http://evilsuperbrain.com
Post a reply to this message
Attachments:
Download 'sponge-b.jpg' (111 KB)
Download 'sponge-a.jpg' (82 KB)
Preview of image 'sponge-b.jpg'
Preview of image 'sponge-a.jpg'
|